import { Component, OnInit } from '@angular/core';
import { Router, NavigationEnd, ActivatedRoute } from '@angular/router';
import { LawService } from './law.service';

import * as moment from 'moment';
import * as _ from 'lodash'

@Component({
	selector: 'app-law',
	templateUrl: './law.component.html',
	styleUrls: ['./law.component.scss'],
	providers: [LawService]
})
export class LawComponent implements OnInit {

	public lawList = [];

	public listCount = 20;

	public type = 0;

	constructor(
		private lawLawService: LawService,
		public router: Router,
		private route: ActivatedRoute,
	) {
		this.initList();
	}
	initList() {
		this.lawList = [];
		for (var i = 1; i <= this.listCount; i++) {
			this.lawList.push({
				name: '2.2风险控制委员会议事规则',
				version: '2',
				type: '法律法规',
				dept: '监察稽核部',
				user: '李春发',
				time: "2017-5-3 07:28:47",
				status:"已发布"
			});
		}
	}

	toastModal(){
		window['$']("#Modal111111").modal();
	}

	ngOnInit() {

		// this.lawList = this.lawLawService.list();
	}

}
